import request from "@/utils/request";

enum API {
    STANDBOOK_URL = "/itp/api/standingbook",
}

export default{
    postSupplierList: (current: number, size: number, data: any) => request.post(`${API.STANDBOOK_URL}/supplier/page?current=${current}&size=${size}`, data),
    postAddSupplier: (param: any) => request.post(`${API.STANDBOOK_URL}/supplier`, param), //新增供应商
    putUpdateSupplier: (param: any) => request.put(`${API.STANDBOOK_URL}/supplier`, param), //修改供应商
    getSupplierDetail: (id: number) => request.get(`${API.STANDBOOK_URL}/supplier/id?id=${id}`),//供应商详情
    deleteSupplier: (id: number) => request.delete(`${API.STANDBOOK_URL}/supplier?id=${id}`)//删除供应商
}